package com.atzly.community.service;

import com.atzly.community.entity.Comment;

import java.util.List;

/**   评论
 * @author zlysimida
 * @date 2021/8/28 - 17:11
 */
public interface CommentService {


    List<Comment> getCommentAndPage(int entityType, int entityId, int offset, int limit);

    int getComment(int entityType,int entityId);

    void saveComment(Comment comment, int discussId);

    Comment selectCommuntById(int entityId);

    // 查询我对帖子的以及对评论的回复
    Integer getCommentNumsByUserId(int userId, int entityTypePost, int entityTypeComment);

    // 查询我对帖子以及评论的回复内容
    List<Comment> getCommentByUserPage(int userId, int entityTypePost, int entityTypeComment,int offset,int limit);
}
